/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'
import i18n from '@/lang/index'

const articleRouter = {
  path: '/adminh5/articlemanage',
  component: Layout,
  redirect: '/adminh5/articlemanage/article/list',
  name: 'Media',
  alwaysShow: true,
  meta: {
    title: i18n.t('Media'),
    icon: 'documentation'
  },
  children: [
    {
      path: 'article',
      component: () => import('@/views/adminh5/articlemanage/article/list'),
      name: 'ArticleList',
      meta: { title: i18n.t('NewsAndBlogs'), icon: 'list' }
    },
    {
      path: 'articlecategory',
      // component: () => import('@/views/adminh5/articlemanage/articlecategory/list'),
      component: () => import('@/views/adminh5/articlemanage/articlecategory/categoryTree'),
      name: 'ArticleCategoryList',
      meta: { title: i18n.t('Categories'), icon: 'list' }
    },
    {
      path: 'articletag',
      component: () => import('@/views/adminh5/articlemanage/articletag/list'),
      name: 'ArticleTagList',
      meta: { title: i18n.t('Tags'), icon: 'list' }
    },
    {
      path: 'az',
      component: () => import('@/views/adminh5/articlemanage/az/list'),
      name: 'AZ',
      meta: { title: i18n.t('A-Z'), icon: 'list' }
    }
  ]
}
export default articleRouter
